package com.dabbo.starship.block;

import java.rmi.RemoteException;

import com.dabbo.starship.cell.CellConsole;
import com.dabbo.starship.cell.CellDefault;
import com.dabbo.starship.interfaces.Block;
import com.dabbo.starship.interfaces.Container;

public class BlockBridge extends BlockDefault {

	private static final long serialVersionUID = 3305292403929178100L;

	// XXXXXXXXX
	// XX C C XX
	// X       X
	// XXX   XXX
	// XC     CX
	// X   C   X
	// X       X
	// XX     XX
	// XXXXXXXXX	

	public BlockBridge(Container parent) throws RemoteException {
		super(parent);
		this.blockType = Block.BLOCK_BRIDGE;
		this.description = "Bridge";
		
		this.grid[1][1] = new CellDefault(this);
		this.grid[1][7] = new CellDefault(this);
		this.grid[1][4] = new CellDefault(this);

		this.grid[7][1] = new CellDefault(this);
		this.grid[7][7] = new CellDefault(this);

		this.grid[3][1] = new CellDefault(this);
		this.grid[3][2] = new CellDefault(this);
		this.grid[3][6] = new CellDefault(this);
		this.grid[3][7] = new CellDefault(this);

		this.grid[4][4] = new CellDefault(this);

		this.grid[1][3] = new CellConsole(this);
		this.grid[1][5] = new CellConsole(this);
		this.grid[4][1] = new CellConsole(this);
		this.grid[4][7] = new CellConsole(this);
		this.grid[5][4] = new CellConsole(this);
	}

}
